
public class TestProf {

	public static void main(String[] args) {
		Graded[] g = new Graded[3];
		//g[0] = new Undergrad();
		//g[1] = new Undergrad();
		//g[2] = new Undergrad();
		Prof.evaluate(g);
		for (Graded ag : g) {
			System.out.println(ag.getGPA());
		}

	}

}
